﻿namespace _2.AbstractFactoryPattern.Pattern
{
    internal class AbstractFactoryProducer
    {
        public static BaseAbstractFactory GetFactory(string name)
        {
            BaseAbstractFactory factory = null;

            switch (name)
            {
                case "Sharp":
                    factory = new SharpFactory();
                    break;
                case "Color":
                    factory = new ColorFactory();
                    break;
                default:
                    break;
            }

            return factory;
        }
    }
}
